# Create your views here.
from models import Post,Page,Website,Categorie,Slogan,CloseBlog, BlogTitle
from django.shortcuts import render_to_response

def blog(request):
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 categorie = Categorie.objects.all()
 slogan = Slogan.objects.all()
 closeblog = CloseBlog.objects.all()
 blogtitle = BlogTitle.objects.all()
 return render_to_response("blog.html",locals())
 
def page(request) :
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 page = Page.objects.all()
 categorie = Categorie.objects.all()
 slogan = Slogan.objects.all()
 blogtitle = BlogTitle.objects.all()
 return render_to_response("page.html",locals())

 



